package com.slow.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.slow.entity.Test;
import com.slow.mapper.TestMapper;
import com.slow.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestServiceImpl implements TestService {
    @Resource
    private TestMapper testMapper;

    public TestServiceImpl() {
    }

    public List<Test> list() {
        QueryWrapper<Test> userQueryWrapper = Wrappers.query();
        userQueryWrapper.select(new String[]{"id"}).lt("id", "2000001");
        return this.testMapper.selectList(userQueryWrapper);
    }
}
